package com.aaa.project5;

public class L {
    public static  void sort(int [] arr){
        for (int i = 1; i < arr.length ; i++) {
            for (int j = 0; j < arr.length-1 ; j++) {
                if (arr[j]>arr[j+1]) {
                    int temp = arr[j];
                    arr[j]= arr[j+1];
                    arr[j+1]=temp;

                }
            }
        }
    }
    public static  int Max (int []arr){
        int temp = arr[0];
        for (int i = 0; i < arr.length ; i++) {
            if (temp < arr[i]) {
                temp=arr[i];
            }
        }
        return temp;
    }
}
